import request from '@/utils/request'

export function queryData(query) {
  return request({
    url: '/system/query/data',
    method: 'get',
    params: query
  })
}

export function reportData(data) {
  return request({
    url: '/system/query/reportData',
    method: 'post',
    data: data
  })
}

export function reportWriteFee(data) {
  return request({
    url: '/system/query/reportWriteFee',
    method: 'post',
    data: data
  })
}

export function queryRecord(query) {
  return request({
    url: '/system/query/record',
    method: 'get',
    params: query
  })
}

export function blackList(query) {
  return request({
    url: '/system/black/blackList',
    method: 'get',
    params: query
  })
}

export function listQuery(query) {
  return request({
    url: '/system/query/list',
    method: 'get',
    params: query
  })
}

export function quickList(query) {
  return request({
    url: '/system/query/quickList',
    method: 'get',
    params: query
  })
}

export function getQuery(queryId) {
  return request({
    url: '/system/query/' + queryId,
    method: 'get'
  })
}

export function addQuery(data) {
  return request({
    url: '/system/query',
    method: 'post',
    data: data
  })
}

export function updateQuery(data) {
  return request({
    url: '/system/query',
    method: 'put',
    data: data
  })
}

export function delQuery(queryId) {
  return request({
    url: '/system/query/' + queryId,
    method: 'delete'
  })
}

export function addRefer(query) {
  return request({
    url: '/system/query/refer',
    method: 'get',
    params: query
  })
}

export function addAuthImg(data) {
  return request({
    url: '/system/query/authImg',
    method: 'post',
    data: data,
    headers: {
      "Content-Type": "multipart/form-data",
    },
  })
}

export function faceAuth(queryId) {
  return request({
    url: '/system/query/faceAuth?ID=' + queryId,
    method: 'get'
  })
}

export function faceResult(query) {
  return request({
    url: '/system/query/faceResult',
    method: 'get',
    params: query
  })
}

export function baseInfo(queryId) {
  return request({
    url: '/system/query/baseInfo?queryId=' + queryId,
    method: 'get'
  })
}

export function setAuthCode(queryId) {
  return request({
    url: '/system/query/setAuthCode?queryId=' + queryId,
    method: 'get'
  })
}

export function referAuth(queryId, ac) {
  return request({
    url: '/system/charge/referAuth?ID=' + queryId + '&ac=' + ac,
    method: 'get'
  })
}

export function refreshiMmovab(queryId) {
  return request({
    url: '/system/query/immovab?queryId=' + queryId,
    method: 'get'
  })
}

export function subListByParent(query) {
  return request({
    url: '/system/query/subListByParent',
    method: 'get',
    params: query
  })
}

export function getPrice(query) {
  return request({
    url: '/system/product/getPrice',
    method: 'get',
    params: query
  })
}

export function reportFee(query) {
  return request({
    url: '/system/query/reportFee',
    method: 'get',
    params: query
  })
}









